from math import sin, cos, radians, sqrt theta = input() theta = radians(theta) #print theta x = input() y = input() z = complex(x,y) print z.real, z.imag for i in range(1,100): z1 = (cos(theta)*z-sin(theta))/(sin(theta)*z+cos(theta)) print z1.real, z1.imag z =z1